Expand description
Core types and abstractions used by the Rune ecosystem.
§Feature Flags
This crate has the following cargo feature flags:
std- enables functionality that requires the standard library (typically implementations ofstd::error::Error)
Modules§
Structs§
- Inline
Resource - A
(&str, &[u8])which stores the first field (name) and second field (data) inline and can be read out of memory usingdecode_inline_resource(). - Invalid
Conversion Error - Serializable
Record - A serializable version of
log::Record. - Shape
- A tensor’s shape.
- Tensor
- A multidimensional array with copy-on-write semantics.
- Tensor
View - An immutable view into a
Tensorwith a particular rank (number of dimensions). - Tensor
View Mut - A mutable view into a
Tensorwith a particular rank (number of dimensions). - Unknown
Element Type
Enums§
- Element
Type - Pixel
Format - Pixel
Format Conversion Error - Type
- Value
- A dynamically typed value that may be passed back and forth across the runtime.
Constants§
- ONNX_
MIMETYPE - The mimetype used for a ONNX model.
- TFJS_
MIMETYPE - The mimetype used for a TensorFlow JS model.
- TFLITE_
MIMETYPE - The mimetype used for a TensorFlow Lite model.
- TF_
MIMETYPE - The mimetype used for a TensorFlow model.
- VERSION
- The version number for this crate.
Traits§
- AsElement
Type - A type that is associated with an
ElementType. - AsType
- A Rust primitive which has a corresponding
Typeand can be converted to or from aValue. - Tensor
List - A helper trait which lets us get the shape from a tuple of different tensors.
- Tensor
List Mut - A set of tensors that can be mutated.
Functions§
- decode_
inline_ resource - Read an
InlineResource’s data from its binary form in memory.